﻿Public Class ThankYou
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        populateFields()
    End Sub

    Protected Sub populateFields()

        If Request.QueryString("message") = "" Then
            Response.Redirect(Request.QueryString("back"))
        End If

        lblThankYou.Text = "You successfully " + Request.QueryString("message") + ". Thank you."
        btnThankYou.PostBackUrl = Request.QueryString("back")

    End Sub

End Class